package cn.itcast.controller;


import cn.itcast.pojo.AAA;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/hello")
public class MyController {

    @PostMapping
    public void hello(@RequestBody AAA aaa) {

        System.out.println("==========================");
        System.out.println(aaa);

        //System.out.println(aaa.getResult());


    }

    @GetMapping
    public void hello1(String name) {

        System.out.println("==========================");
        System.out.println(name);


    }
}
